package com.ruoyi.project.AnswerQuestion.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 【请填写功能名称】对象 tb_question_answer
 * 
 * @author lvyongwei
 * @date 2020-11-26
 */
@Alias("TbQuestionAnswer")
public class TbQuestionAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回答id */
    private Long questionAnswerId;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    /** 回答内容 */
    @Excel(name = "回答内容")
    private String questionAnswerContent;

    /** 回答人id */
    @Excel(name = "回答人id")
    private Long questionAnswerUser;

    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setQuestionAnswerId(Long questionAnswerId)
    {
        this.questionAnswerId = questionAnswerId;
    }

    public Long getQuestionAnswerId() 
    {
        return questionAnswerId;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setQuestionAnswerContent(String questionAnswerContent) 
    {
        this.questionAnswerContent = questionAnswerContent;
    }

    public String getQuestionAnswerContent() 
    {
        return questionAnswerContent;
    }
    public void setQuestionAnswerUser(Long questionAnswerUser) 
    {
        this.questionAnswerUser = questionAnswerUser;
    }

    public Long getQuestionAnswerUser() 
    {
        return questionAnswerUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionAnswerId", getQuestionAnswerId())
            .append("questionId", getQuestionId())
            .append("questionAnswerContent", getQuestionAnswerContent())
            .append("questionAnswerUser", getQuestionAnswerUser())
            .append("createTime", getCreateTime())
            .toString();
    }
}
